﻿using AutoMapper;
using BCDto.Common.Business.WebsiteBusinessCategory;
using BCDto.Common.Business.WebsiteBusinessIntroduction;
using BCDto.Common.Business.WebsiteBusinessTagcode;
using BCEntity.Common.Business.WebsiteBusinessCategory;
using BCEntity.Common.Business.WebsiteBusinessIntroduction;
using BCEntity.Common.Business.WebsiteBusinessTagcode;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.MapperProfiles.Common.Business
{
    public class WebsiteBusinessProfile:Profile
    {
        public WebsiteBusinessProfile()
        {
            //官网业务标记码
            CreateMap<WebsiteBusinessTagcodeDto, WebsiteBusinessTagcodeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessTagcodeRequestDto, WebsiteBusinessTagcodePutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessTagcodeRequestDto, WebsiteBusinessTagcodeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessTagcodePutDto, WebsiteBusinessTagcodeEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessTagcodeEntity, WebsiteBusinessTagcodeDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            //官网业务分类
            CreateMap<WebsiteBusinessCategoryDto, WebsiteBusinessCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessCategoryRequestDto, WebsiteBusinessCategoryPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessCategoryRequestDto, WebsiteBusinessCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessCategoryPutDto, WebsiteBusinessCategoryEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessCategoryEntity, WebsiteBusinessCategoryDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessCategoryEntity, WebsiteBusinessCategoryViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            //官网业务简介
            CreateMap<WebsiteBusinessIntroductionDto, WebsiteBusinessIntroductionEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessIntroductionRequestDto, WebsiteBusinessIntroductionPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessIntroductionRequestDto, WebsiteBusinessIntroductionEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessIntroductionPutDto, WebsiteBusinessIntroductionEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessIntroductionEntity, WebsiteBusinessIntroductionDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<WebsiteBusinessIntroductionEntity, WebsiteBusinessIntroductionViewDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            
        }
    }
}
